#!/bin/sh
# $Id: meminfo 80 2006-10-07 05:59:06Z cmauch $
#
# Description: Generates memory stats for screen to display
#
# Copyright (C) 2003,2004,2005,2006 Charles Mauch <cmauch@gmail.com>
#
# Verbatim copying, distribution, and display of this program is permitted in
# any medium, provided this notice is preserved. Alternatively, you may create
# derivative works of any sort for any purpose, provided your versions contain
# no attribution to me, and that you assert your own authorship (and not mine)
# in every practical medium.

RAM=`cat /proc/meminfo | grep "MemFree" | awk -F" " '{print $2}'`
SWAP=`cat /proc/meminfo | grep "SwapFree" | awk -F" " '{print $2}'`
echo -n "${RAM}kb/ram ${SWAP}kb/swap"
